home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 July / CMCD0704.ISO / Software / Shareware / Comunicatii / feedaemon / fd110rc5.exe / {app} / Data / defaults / styles / Popbox Green.fdxsl < prev    next >
Extensible Markup Language  |  2004-05-24  |  3KB  |  80 lines

  1. <?xml version="1.0"?>
  2.  
  3. <xsl:stylesheet version="1.0"
  4.     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  5.     xmlns:fd="http://www.bradsoft.com/feeddemon/xmlns/1.0/">
  6. <xsl:output method="html"/>
  7.  
  8. <xsl:template match="newspaper">
  9.     <html>
  10.     <head>
  11.         <title>Newspaper</title>
  12.         <style type="text/css">
  13.             body {
  14.                 font-size: 100%;
  15.                 font-family: Georgia, serif;
  16.                 margin: 0;
  17.                 color: #255D00;
  18.                 background-color: #F1FFE5;
  19.                 padding: 20px 28px;
  20.                 filter: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#F9FFF4,endColorStr=#B7FF7D);
  21.             }
  22.             a { color: #2C7100; }
  23.             a:hover { text-decoration: underline; }
  24.             span.nodescription {    font-size: x-small; color: #1F4F00;}
  25.             div.newspapertitle { text-transform: uppercase; font-weight: bold; font-size: 130%; margin-bottom: 20px;}
  26.             div.newsitem {width: 100%; margin-bottom: 24px; margin-top: 16px }
  27.             div.newsitemdateline { font-size: x-small; font-style: italic; }
  28.             div.newsitemtitlebox { padding: 12px 14px; float: right; border: 1px solid #5CC400; border-right-width: 3px; border-bottom-width: 3px; margin-left: 18px; margin-bottom: 8px; text-align: right; width: 45%; background-color: #C6FFA1;}
  29.             div.newsitemtitlebox a { text-decoration: none; }
  30.             div.newsitemtitle { font-weight: bold; border-bottom: 1px dotted #5CC400; padding-bottom: 8px; margin-bottom: 4px;} 
  31.             div.newsitemcontent { line-height: 140%; }
  32.             hr.newsitembreak { color: #5CC400; height: 1px; }
  33.         </style>
  34.     </head>
  35.     <body>
  36.     <div class="newspapertitle">
  37.         <xsl:value-of select="title" disable-output-escaping="yes"/>
  38.     </div>
  39.     <xsl:variable name="newspapertype" select="@type"/>
  40.     <xsl:for-each select="channel/item">
  41.         <xsl:sort select="title"/>
  42.         <div class="newsitem">
  43.             <div class="newsitemtitlebox">
  44.                <div class="newsitemtitle">
  45.                     <xsl:variable name="itemlink" select="link"/>
  46.                    <a href="{$itemlink}"><xsl:value-of select="title" disable-output-escaping="yes"/></a>
  47.                 </div>
  48.                 <div class="newsitemdateline">
  49.                     <xsl:variable name="srclink" select="source/@htmlUrl"/>
  50.                     <a href="{$srclink}"><xsl:value-of select="source"/></a>
  51.                     <br /><xsl:value-of select="fd:dateDisplay"/>
  52.                     <!-- add link to comments if available -->
  53.                     <xsl:if test="comments">
  54.                         <xsl:variable name="commentlink" select="comments"/>
  55.                         <xsl:variable name="commentimg" select="'$IMAGEDIR$comments.gif'"/>
  56.                         | <a href="{$commentlink}"><img src="{$commentimg}" border="0" align="absmiddle" hspace="6"/></a>
  57.                     </xsl:if>
  58.                     <!-- add link to enclosure if available -->
  59.                     <xsl:if test="enclosure">
  60.                         <xsl:variable name="enclosurelink" select="enclosure/@url"/>
  61.                         <xsl:variable name="enclosureimg" select="'$IMAGEDIR$enclosure.gif'"/>
  62.                         | <a href="{$enclosurelink}"><img src="{$enclosureimg}" align="absmiddle" border="0" hspace="6"/></a>
  63.                     </xsl:if>
  64.                         
  65.                     </div>
  66.                 </div>            
  67.                 <div class="newsitemcontent">
  68.                     <xsl:value-of select="description" disable-output-escaping="yes"/>
  69.                 </div>
  70.             </div>
  71.             <xsl:if test="$newspapertype != 'newsitem'">
  72.                 <hr class="newsitembreak" />
  73.             </xsl:if>            
  74.         </xsl:for-each>
  75.     </body>
  76.     </html>    
  77. </xsl:template>
  78.  
  79.  
  80. </xsl:stylesheet>